package com.wn.sk.product.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品参数
 * </p>
 *
 * @author yellow docker
 * @since 2022-09-02
 */
@Getter
@Setter
  @TableName("pms_product_param")
@ApiModel(value = "ProductParam对象", description = "商品参数")
public class ProductParam implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("商品编号")
      private Integer productId;

      @ApiModelProperty("参数名称")
      private String productParamName;

      @ApiModelProperty("手动添加规格或参数的值，参数单值，规格有多个时以逗号隔开")
      private String productParamValue;

      @ApiModelProperty("排序字段：最高的可以单独上传图片")
      private Integer sort;

      @ApiModelProperty("属性的类型；0->规格；1->参数")
      private String type;


}
